<!--
 * @Author: cgl
 * @Date: 2023-06-19 10:06:51
 * @LastEditors: cgl
 * @LastEditTime: 2023-09-04 15:33:36
 * @FilePath: \public-health-emergencies-fed:\新放射\新radiation-hygiene-fe\src\views\person\itemControl\index.vue
 * @Description:
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
-->
<template>
  <div class="container">

		<!-- <div v-if="type == '01'"><item01 /></div>
		<div v-if="type == '02'"><item02 /></div>
		<div v-if="type == '03'"><item03 /></div>
		<div v-if="type == '04'"><item04 /></div>
		<div v-if="type == '05'"><item05 /></div>
		<div v-if="type == '06'"><item06 /></div>
		<div v-if="type == '07'"><item07 /></div>
		<div v-if="type == '08'"><item08 /></div>
		<div v-if="type == '09'"><item09 /></div>
		<div v-if="type == '10'"><item10 /></div>
		<div v-if="type == '11'"><item11 /></div>
		<div v-if="type == '12'"><item12 /></div> -->
		<!-- 核医学 -->
		<!-- <div v-if="type == '40'"><item40 /></div> -->
    <div v-if="comp">
      <component :is="comp" ></component>
    </div>
  </div>
</template>

<script>

// import item01 from "./item01";
// import item02 from "./item02";
// import item03 from "./item03";
// import item04 from "./item04";
// import item05 from "./item05";
// import item06 from "./item06";
// import item07 from "./item07";
// import item08 from "./item08";
// import item09 from "./item09";
// import item10 from "./item10";
// import item11 from "./item11";
// import item12 from "./item12";
// import item40 from "./item40";

export default {
  name: "Index",
	// components: {
	// 	item01,
	// 	item02,
	// 	item03,
	// 	item04,
	// 	item05,
	// 	item06,
	// 	item07,
	// 	item08,
	// 	item09,
	// 	item10,
	// 	item11,
	// 	item12,
	// 	item40,
	// },
  data() {
    return {
      comp:null,
    };
  },
  created() {
    let value = this.type;
    if(value){
      // if(value == '51'){
      //   value = "50";
      // }
      this.comp = resolve => require.ensure([], () => resolve(require(`./item${value}`)));
      // window.MathJax.Hub.Queue(["Rerender",MathJax.Hub]); 
    }
  },
  props: {
    type: {
			type: String,
      default: "0",
    },
	},
  watch:{
    type:{
      handler(value){
        this.comp = resolve => require.ensure([], () => resolve(require(`./item${value}`)));
        // window.MathJax.Hub.Queue(["Rerender",MathJax.Hub]); 
      }
    }
  },
	methods: {
	}
};
</script>

<style lang="scss" scoped>
</style>
